<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<title>Document</title>
	<script src="../js/vue.js"></script>
</head>

<body>
	<!-- 单选按钮 -->
	<div id="app">
		<input type="radio" :value="1" v-model="sex">男</input>
		<input type="radio" :value="0" v-model="sex">女</input>
		<h1>sex:{{sex}}</h1>
	</div>
	<script>
		var vm = new Vue({
			el: "#app",
			data: {
				sex: 1,
			},
		});
	</script>
</body>

</html>